package com.eastfair.venuebooking.api;

import com.eastfair.core.base.R;
import com.eastfair.venueservice.dto.BondManageDTO;
import com.eastfair.venueservice.vo.BondManageVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 主场保证金订单 feign.
 *
 * @author dqq
 * @date 2023 /4/18
 */
@FeignClient(value = "venue-services-manage/homeBondManage")
public interface HomeBondManageFeign {

    /**
     * 提交保证金订单.
     *
     * @param bondManageDTO the bond manage dto
     * @return the r
     */
    @PostMapping("/submit")
    R<Boolean> submit(@RequestBody BondManageDTO bondManageDTO);

    /**
     * 展商ID查询保证金订单
     *
     * @param exhibitorIdList the exhibitor id list
     * @return the r
     */
    @PostMapping("/query/exhibitorId")
    R<List<BondManageVO>> queryByExhibitorIdList(@RequestBody List<Long> exhibitorIdList);
}